<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./js/videoImages.js"></script>
</head>
<body>
<div>
    <button id="getImg">获取</button>
    <button id="stop">停止</button>

    <textarea name="" id="textarea" cols="30" rows="10"></textarea>
</div>

<script>
    document.getElementById('getImg').onclick = () => {
        getVideoImages.start('./说话.mp4').then((list) => {
            console.log(list)
        }).catch((error) => {
            console.log('获取失败',error)
        })
    }

    document.getElementById('stop').onclick = () => {
        getVideoImages.stop()
    }
</script>
</body>
</html>